package com.rongji.dfish.ui.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Target(value = { FIELD, METHOD })
@Retention(value = RUNTIME)
@Documented
public @interface Data4GridPanel {
	public enum ColumnType{
		TEXT,
		HIDDEN
	}
	
	public String name();
	public ColumnType type();
	public boolean checkbox() default false;
	public boolean radio() default false; 
	public String label() default "";
	public int order() default -1;
	public String format() default "";
	public boolean required() default false;
	public String width() default "*";
}
